﻿using AMAP.Areas.Public.Models.Test;
using System.Web.Mvc;

namespace AMAP.Areas.Public.Controllers
{
    public class TestController : Controller
    {
        //
        // GET: /Public/Test/

        public ActionResult Index()
        {
            TestViewModel Model = new TestViewModel();

            return View(Model);
        }

        [HttpPost]
        public ActionResult Index(TestViewModel Model)
        {
            foreach (var e in Model.Lines)
            {
                Response.Write(e.Text1 + "<br>" + e.Text2);
            }

            return View(Model);
        }

    }
}
